ScxV6Object.Property Method
Gets or sets the value of a database propery of the object.
Parameters
- Name
The name of the property to get or set.
Remarks
The Property method performs a similar function to the Interface method, in that both provide access to the properties of the database object. Once important difference is that Property looks up the interface at run time, whereas Interface looks up the property at compile time.
The following example written in Visual Basic shows the Property method being used set the number of retries on a Modbus channel to 5.
Dim Svr As ScxV6DbClient.ScxV6Server
' Connect to the server
Svr = New ScxV6DbClient.ScxV6Server
Svr.Connect("MAIN", "", "")
Dim Obj As ScxV6DbClient.ScxV6Object
Obj = Svr.FindObject("Primary Serial Modbus Channel")
Obj.Property("Retries") = 5
' Disconnect
Svr.Disconnect()
Database fields that contain a numeric IPv4 address are 32-bit signed integer fields. When using the automation interface to enter higher addresses in such fields, you have to pass the IP address as a negative decimal value.
When using the automation interface to populate a database field such as CeNETTCPIP::Eth1IPAddress with a higher IP address such as 176.16.1.200, you have to pass the IP address as the negative value -1,341,128,248 rather than 2,953,839,048. If, when using the automation interface to modify the field, the IP address is not passed as a negative value, an overflow error occurs.